﻿
package extremefx.tools {
	import flash.utils.getDefinitionByName;
	
	/**
	 * Gets a class by its full qualified name
	 * @param pClassName the full qualified name of the class.
	 * @return the class or null if the class does not exists.
	 */
	public function getClassByName(pClassName:String):Class{
		try {
			return getDefinitionByName(pClassName) as Class;
			
		} catch(e:Error) {
		}
		
		return null;
	}
}
